package com.artisan.biz.controller;

import com.artisan.biz.service.FileStoreService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FileStoreController {

    @Value("${plugin.type}")
    private String type;

    @Resource
    private FileStoreService fileStoreService;


    @GetMapping("/test")
    public String test() {
        fileStoreService.saveFile(type);
        return "ok";
    }

}
